﻿using System;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 工单标片
    /// </summary>
    public class VWorkOrderStandardPiece : BaseVModel
    {
        private string _productCode = string.Empty;
        private string _model = string.Empty;
        private string _orderNo;
        private string _workOrderNo;

        #region Public Property

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 标片ID
        ///</Summary>
        public int StandardPieceId { get; set; }

        ///<Summary>
        /// 条码
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// 型号
        ///</Summary>
        public string Model
        {
            get { return string.IsNullOrWhiteSpace(_model) ? string.Empty : _model; }
            set { _model = value; }
        }

        ///<Summary>
        /// 校验频次
        ///</Summary>
        public decimal? Frequency { get; set; }
        #endregion
    }
}
